//
//  PKRadioDetailTextTableViewCell.m
//  PianKe
//
//  Created by mingtao on 15/10/5.
//  Copyright (c) 2015年 mingtao. All rights reserved.
//

#import "PKRadioDetailTextTableViewCell.h"
#import <UIImageView+WebCache.h>


@implementation PKRadioDetailTextTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        
        _imageicon=[[UIImageView alloc]init];
        
        _imageicon.frame = CGRectMake(10, 0, WIHES/6, 80);
        
        [self.contentView addSubview:_imageicon];
        
        _labletitle= [[UILabel alloc]initWithFrame:CGRectMake(WIHES/6+20,0 ,WIHES-50, 30)];
        
        [self.contentView addSubview:_labletitle];
        
        _imageSl=[[UIImageView alloc]init];
        
        _imageSl.frame = CGRectMake(WIHES/6+20, 60, 10, 10);
        
        _imageSl.image = [UIImage imageNamed:@"imagesy"];
        
        [self.contentView addSubview:_imageSl];
        
        _lablemusicvisitnum=[[UILabel alloc]initWithFrame:CGRectMake(WIHES/6+50, 50, WIHES/6, 30)];
        
        _lablemusicvisitnum.font = [UIFont systemFontOfSize:12];
        
        [self.contentView addSubview:_lablemusicvisitnum];
        
        
    }
    return self;


}

//readiDetail
-(void)setReadiDetail:(PKRadioDetail *)readiDetail
{

    _readiDetail = readiDetail;
    
    [_imageicon sd_setImageWithURL:[NSURL URLWithString:readiDetail.coverimg]];
    
    _labletitle.text = readiDetail.title;
    
    _lablemusicvisitnum.text = readiDetail.musicVisit;
    

}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
